// 常用 key
const MR_NEWS = 'mr_toutiao'
// 存储token
let saveToken = obj =>{
  localStorage.setItem(MR_NEWS,JSON.stringify(obj))
}

// 取token
let getToken =()=>{
 return  JSON.parse(localStorage.getItem(MR_NEWS))
}

// 退出时删除
let removeToken = ()=>{
  return  localStorage.removeItem(MR_NEWS)
}

//导出接口
export {saveToken,getToken,removeToken}